home *** CD-ROM | disk | FTP | other *** search
/ All for Cell Phones: Sony Ericsson / Sony-Ericsson 2004.iso / Java / SpruceDriver / SpruceDriver.jar / org / spruce / midp / driver / b.class (.txt) < prev    next >
Encoding:
Java Class File  |  2002-04-05  |  3.8 KB  |  426 lines

  1. package org.spruce.midp.driver;
  2.  
  3. import java.util.Random;
  4.  
  5. // $FF: renamed from: org.spruce.midp.driver.b
  6. final class class_0 {
  7.    // $FF: renamed from: a int
  8.    public static final int field_0 = 1;
  9.    // $FF: renamed from: b int
  10.    public static final int field_1 = 2;
  11.    // $FF: renamed from: c int
  12.    public static final int field_2 = -1;
  13.    // $FF: renamed from: d int
  14.    public static final int field_3 = 1;
  15.    // $FF: renamed from: e int
  16.    public static final int field_4 = 2;
  17.    // $FF: renamed from: f int
  18.    public static final int field_5 = 3;
  19.    // $FF: renamed from: g int
  20.    public int field_6;
  21.    // $FF: renamed from: h int
  22.    public int field_7;
  23.    // $FF: renamed from: i int
  24.    private static final int field_8 = 15;
  25.    // $FF: renamed from: j int
  26.    public static final int field_9 = 3;
  27.    // $FF: renamed from: k int
  28.    public static final int field_10 = 2;
  29.    // $FF: renamed from: l int
  30.    public static final int field_11 = 700;
  31.    // $FF: renamed from: m int
  32.    private static final int field_12 = 200;
  33.    // $FF: renamed from: n int
  34.    private static final int field_13 = 5;
  35.    // $FF: renamed from: o int[]
  36.    private int[] field_14;
  37.    // $FF: renamed from: p int[]
  38.    private int[] field_15;
  39.    // $FF: renamed from: q int[]
  40.    private int[] field_16;
  41.    // $FF: renamed from: r int
  42.    private int field_17;
  43.    // $FF: renamed from: s int
  44.    private int field_18;
  45.    // $FF: renamed from: t int
  46.    private int field_19 = 0;
  47.    // $FF: renamed from: u int
  48.    private int field_20;
  49.    // $FF: renamed from: v int
  50.    private int field_21 = 700;
  51.    // $FF: renamed from: w int
  52.    private int field_22;
  53.    // $FF: renamed from: x java.util.Random
  54.    private Random field_23 = new Random();
  55.  
  56.    public class_0(int var1, int var2) {
  57.       this.field_7 = var1;
  58.       this.field_6 = var2;
  59.       this.field_14 = new int[this.field_6 + 2];
  60.       this.field_15 = new int[this.field_6 + 2];
  61.       this.field_16 = new int[this.field_6 + 2];
  62.       this.field_17 = this.field_7 / 2;
  63.       this.field_18 = this.field_6 - 1;
  64.       int var3 = 0;
  65.       if (Driver.p) {
  66.          this.field_16[var3] = Integer.MIN_VALUE;
  67.          ++var3;
  68.       }
  69.  
  70.       while(var3 < this.field_16.length) {
  71.          this.field_16[var3] = Integer.MIN_VALUE;
  72.          ++var3;
  73.       }
  74.  
  75.    }
  76.  
  77.    // $FF: renamed from: a () void
  78.    public void method_0() {
  79.       if (this.field_22 == 0) {
  80.          --this.field_17;
  81.       }
  82.  
  83.    }
  84.  
  85.    // $FF: renamed from: b () void
  86.    public void method_1() {
  87.       if (this.field_22 == 0) {
  88.          ++this.field_17;
  89.       }
  90.  
  91.    }
  92.  
  93.    // $FF: renamed from: c () boolean
  94.    public boolean method_2() {
  95.       if (this.field_22 == 0 && this.field_18 > 4) {
  96.          --this.field_18;
  97.          return true;
  98.       } else {
  99.          return false;
  100.       }
  101.    }
  102.  
  103.    // $FF: renamed from: d () boolean
  104.    public boolean method_3() {
  105.       if (this.field_22 == 0 && this.field_18 < this.field_6 - 2) {
  106.          ++this.field_18;
  107.          return true;
  108.       } else {
  109.          return false;
  110.       }
  111.    }
  112.  
  113.    // $FF: renamed from: e () int
  114.    public int method_4() {
  115.       boolean var3;
  116.       int var10000;
  117.       label194: {
  118.          int var1;
  119.          label197: {
  120.             var3 = Driver.p;
  121.             var1 = 0;
  122.             var10000 = (this.field_19 + 15) % (this.field_6 * 200 * 15 / 700);
  123.             if (!var3) {
  124.                if (var10000 == 0) {
  125.                   var1 = -1;
  126.                   if (!var3) {
  127.                      break label197;
  128.                   }
  129.                }
  130.  
  131.                var10000 = this.field_19 % 15;
  132.             }
  133.  
  134.             if (var3) {
  135.                break label194;
  136.             }
  137.  
  138.             if (var10000 == 0) {
  139.                var1 = Math.abs(this.field_23.nextInt()) % 2 + 1;
  140.             }
  141.          }
  142.  
  143.          ++this.field_19;
  144.          System.arraycopy(this.field_14, 0, this.field_14, 1, this.field_14.length - 1);
  145.          this.field_14[0] = var1;
  146.          var10000 = Math.abs(this.field_23.nextInt() % this.field_7);
  147.       }
  148.  
  149.       int var2;
  150.       label183: {
  151.          label182: {
  152.             label198: {
  153.                var2 = var10000;
  154.                System.arraycopy(this.field_15, 0, this.field_15, 1, this.field_15.length - 1);
  155.                this.field_15[0] = var2;
  156.                var10000 = this.field_19 % 2;
  157.                if (!var3) {
  158.                   if (var10000 == 0) {
  159.                      label206: {
  160.                         System.arraycopy(this.field_16, 0, this.field_16, 1, this.field_16.length - 1);
  161.                         class_0 var6 = this;
  162.                         if (!var3) {
  163.                            if (this.field_19 / 2 % 30 == 12) {
  164.                               this.field_16[0] = Math.abs(this.field_23.nextInt() % this.field_7);
  165.                               if (!var3) {
  166.                                  break label206;
  167.                               }
  168.                            }
  169.  
  170.                            var6 = this;
  171.                         }
  172.  
  173.                         var6.field_16[0] = Integer.MIN_VALUE;
  174.                      }
  175.                   }
  176.  
  177.                   this.method_5();
  178.                   this.field_17 += this.field_22;
  179.                   var10000 = this.field_22;
  180.                   if (var3) {
  181.                      break label198;
  182.                   }
  183.                }
  184.  
  185.                if (var10000 > 0) {
  186.                   --this.field_22;
  187.                   --this.field_21;
  188.                   if (!var3) {
  189.                      break label182;
  190.                   }
  191.                }
  192.  
  193.                var10000 = this.field_22;
  194.                if (var3) {
  195.                   break label183;
  196.                }
  197.             }
  198.  
  199.             if (var10000 < 0) {
  200.                ++this.field_22;
  201.                --this.field_21;
  202.             }
  203.          }
  204.  
  205.          var10000 = this.field_17;
  206.       }
  207.  
  208.       label161: {
  209.          label200: {
  210.             if (!var3) {
  211.                if (var10000 >= 0) {
  212.                   var10000 = this.field_17;
  213.                   if (var3) {
  214.                      break label161;
  215.                   }
  216.  
  217.                   if (var10000 < this.field_7) {
  218.                      break label200;
  219.                   }
  220.                }
  221.  
  222.                var10000 = this.field_20;
  223.             }
  224.  
  225.             if (var3) {
  226.                break label161;
  227.             }
  228.  
  229.             if (var10000 > 0) {
  230.                label151: {
  231.                   --this.field_20;
  232.                   this.field_21 -= 5;
  233.                   var10000 = this.field_17;
  234.                   int var10001 = -3;
  235.                   if (!var3) {
  236.                      if (var10000 < -3) {
  237.                         this.field_17 = -3;
  238.                         if (!var3) {
  239.                            break label151;
  240.                         }
  241.                      }
  242.  
  243.                      var10000 = this.field_17;
  244.                      if (var3) {
  245.                         break label161;
  246.                      }
  247.  
  248.                      var10001 = this.field_7 + 3;
  249.                   }
  250.  
  251.                   if (var10000 >= var10001) {
  252.                      this.field_17 = this.field_7 + 3 - 1;
  253.                   }
  254.                }
  255.             }
  256.          }
  257.  
  258.          --this.field_21;
  259.          var10000 = this.field_21;
  260.       }
  261.  
  262.       if (!var3) {
  263.          if (var10000 <= 0) {
  264.             return 1;
  265.          }
  266.  
  267.          int var4 = this.field_14[this.field_18];
  268.          var2 = this.field_15[this.field_18];
  269.          var10000 = var4;
  270.       }
  271.  
  272.       int var10;
  273.       label135: {
  274.          label134: {
  275.             if (!var3) {
  276.                switch (var10000) {
  277.                   case 0:
  278.                   default:
  279.                      break;
  280.                   case 1:
  281.                      var10000 = Math.abs(var2 - this.field_17);
  282.                      if (var3) {
  283.                         return var10000;
  284.                      }
  285.  
  286.                      if (var10000 < 2) {
  287.                         var10000 = 2;
  288.                         return var10000;
  289.                      }
  290.  
  291.                      this.field_20 += 5;
  292.                      if (!var3) {
  293.                         break;
  294.                      }
  295.                   case 2:
  296.                      label204: {
  297.                         var10000 = Math.abs(var2 - this.field_17);
  298.                         if (!var3) {
  299.                            if (var10000 >= 2) {
  300.                               break label204;
  301.                            }
  302.  
  303.                            this.field_22 = Math.abs(this.field_23.nextInt()) % 2 + 2;
  304.                            var10000 = this.field_23.nextInt();
  305.                         }
  306.  
  307.                         if (!var3) {
  308.                            if (var10000 < 0) {
  309.                               this.field_22 *= -1;
  310.                            }
  311.  
  312.                            var10000 = this.field_20;
  313.                         }
  314.  
  315.                         if (var3) {
  316.                            break label134;
  317.                         }
  318.  
  319.                         if (var10000 <= 0) {
  320.                            break;
  321.                         }
  322.  
  323.                         --this.field_20;
  324.                         if (!var3) {
  325.                            break;
  326.                         }
  327.                      }
  328.  
  329.                      ++this.field_20;
  330.                      if (!var3) {
  331.                         break;
  332.                      }
  333.                   case -1:
  334.                      var10000 = var2;
  335.                      var10 = this.field_17;
  336.                      if (var3) {
  337.                         break label135;
  338.                      }
  339.  
  340.                      if (var2 == var10) {
  341.                         this.field_21 += 200;
  342.                         class_0 var8 = this;
  343.                         if (!var3) {
  344.                            if (this.field_21 > 700) {
  345.                               this.field_21 = 700;
  346.                            }
  347.  
  348.                            this.field_20 += 10;
  349.                            var8 = this;
  350.                         }
  351.  
  352.                         var8.field_14[this.field_18] = 0;
  353.                      }
  354.                }
  355.  
  356.                var2 = this.field_16[this.field_18];
  357.                var10000 = var2;
  358.             }
  359.  
  360.             if (var3) {
  361.                return var10000;
  362.             }
  363.          }
  364.  
  365.          var10 = Integer.MIN_VALUE;
  366.       }
  367.  
  368.       if (var10000 != var10) {
  369.          var10000 = Math.abs(var2 - this.field_17);
  370.          if (var3) {
  371.             return var10000;
  372.          }
  373.  
  374.          if (var10000 < 2) {
  375.             var10000 = 3;
  376.             return var10000;
  377.          }
  378.  
  379.          this.field_20 += 3;
  380.       }
  381.  
  382.       var10000 = 0;
  383.       return var10000;
  384.    }
  385.  
  386.    // $FF: renamed from: f () void
  387.    public void method_5() {
  388.       // $FF: Couldn't be decompiled
  389.    }
  390.  
  391.    // $FF: renamed from: g () int
  392.    public int method_6() {
  393.       return this.field_17;
  394.    }
  395.  
  396.    // $FF: renamed from: h () int
  397.    public int method_7() {
  398.       return this.field_18;
  399.    }
  400.  
  401.    // $FF: renamed from: i () int[]
  402.    public int[] method_8() {
  403.       return this.field_14;
  404.    }
  405.  
  406.    // $FF: renamed from: j () int[]
  407.    public int[] method_9() {
  408.       return this.field_15;
  409.    }
  410.  
  411.    // $FF: renamed from: k () int[]
  412.    public int[] method_10() {
  413.       return this.field_16;
  414.    }
  415.  
  416.    // $FF: renamed from: l () int
  417.    public int method_11() {
  418.       return this.field_20;
  419.    }
  420.  
  421.    // $FF: renamed from: m () int
  422.    public int method_12() {
  423.       return this.field_21;
  424.    }
  425. }
  426.